package org.zfes.snowier.cloud.zbss.cms.content.model;
import org.zfes.snowier.common.dao.IBaseModel;
public class CmsContentChargeRecord extends IBaseModel{

	private static final long serialVersionUID = 1L;
	
	public CmsContentChargeRecord() {}
	public CmsContentChargeRecord(Long id) {
		this.setId(id);
	}
	//<-------------------------------------------->

 
	@javax.validation.constraints.NotNull(message="订单号不能为空")
	@javax.validation.constraints.NotBlank(message="订单号不能为空")
	 @org.hibernate.validator.constraints.Length(min=0,max=50,message="订单号长度不能大于50")
	  private java.lang.String orderNumber;
 
	@javax.validation.constraints.NotNull(message="内容ID不能为空")
	  private java.lang.Long contentId;
 
	
	  private java.lang.Long buyUserId;
 
	@javax.validation.constraints.NotNull(message="笔者ID不能为空")
	  private java.lang.Long authorUserId;
 
	@javax.validation.constraints.NotNull(message="成交金额不能为空")
	 @javax.validation.constraints.Digits(integer=9,fraction=2,message="成交金额数据精度错误")
	private java.lang.Double chargeAmount;
 
	@javax.validation.constraints.NotNull(message="笔者所得不能为空")
	 @javax.validation.constraints.Digits(integer=7,fraction=4,message="笔者所得数据精度错误") 
	private java.lang.Double authorAmount;
 
	@javax.validation.constraints.NotNull(message="平台所得不能为空")
	
	 @javax.validation.constraints.Digits(integer=7,fraction=4,message="平台所得数据精度错误")
	private java.lang.Double platAmount;
 
	@javax.validation.constraints.NotNull(message="成交时间不能为空")
	  private java.util.Date buyTime;
 
	@javax.validation.constraints.NotNull(message="是否已经结算给作者(0未结算 1已经结算)不能为空")
	
	  private java.lang.Byte hasPaidAuthor;
 
	 @org.hibernate.validator.constraints.Length(min=0,max=255,message="微信支付订单号长度不能大于255")
	  private java.lang.String orderNumWeixin;
 
	 @org.hibernate.validator.constraints.Length(min=0,max=100,message="支付宝订单号长度不能大于100")
	  private java.lang.String orderNumAlipay;
 
	@javax.validation.constraints.NotNull(message="模式不能为空")
	
	  private java.lang.Byte chargeReward;
 
	@javax.validation.constraints.NotNull(message="状态:不能为空")
	  private java.lang.Byte status;
 
	@javax.validation.constraints.NotNull(message="创建时间不能为空")
	  private java.util.Date createTime;
 
	@javax.validation.constraints.NotNull(message="更新时间不能为空")
	  private java.util.Date updateTime;
 
	
	//<-------------------------------------------->
	public CmsContentChargeRecord setOrderNumber(java.lang.String orderNumber){
		this.orderNumber=orderNumber==null?null:orderNumber.trim();
	 return this;
	}
	public java.lang.String getOrderNumber(){
		return this.orderNumber;
	}
	public CmsContentChargeRecord setContentId(java.lang.Long contentId){
	 this.contentId=contentId;
	 return this;
	}
	public java.lang.Long getContentId(){
		return this.contentId;
	}
	public CmsContentChargeRecord setBuyUserId(java.lang.Long buyUserId){
	 this.buyUserId=buyUserId;
	 return this;
	}
	public java.lang.Long getBuyUserId(){
		return this.buyUserId;
	}
	public CmsContentChargeRecord setAuthorUserId(java.lang.Long authorUserId){
	 this.authorUserId=authorUserId;
	 return this;
	}
	public java.lang.Long getAuthorUserId(){
		return this.authorUserId;
	}
	public CmsContentChargeRecord setChargeAmount(java.lang.Double chargeAmount){
	 this.chargeAmount=chargeAmount;
	 return this;
	}
	public java.lang.Double getChargeAmount(){
		return this.chargeAmount;
	}
	public CmsContentChargeRecord setAuthorAmount(java.lang.Double authorAmount){
	 this.authorAmount=authorAmount;
	 return this;
	}
	public java.lang.Double getAuthorAmount(){
		return this.authorAmount;
	}
	public CmsContentChargeRecord setPlatAmount(java.lang.Double platAmount){
	 this.platAmount=platAmount;
	 return this;
	}
	public java.lang.Double getPlatAmount(){
		return this.platAmount;
	}
	public CmsContentChargeRecord setBuyTime(java.util.Date buyTime){
	 this.buyTime=buyTime;
	 return this;
	}
	public java.util.Date getBuyTime(){
		return this.buyTime;
	}
	public CmsContentChargeRecord setHasPaidAuthor(java.lang.Byte hasPaidAuthor){
	 this.hasPaidAuthor=hasPaidAuthor;
	 return this;
	}
	public java.lang.Byte getHasPaidAuthor(){
		return this.hasPaidAuthor;
	}
	public CmsContentChargeRecord setOrderNumWeixin(java.lang.String orderNumWeixin){
		this.orderNumWeixin=orderNumWeixin==null?null:orderNumWeixin.trim();
	 return this;
	}
	public java.lang.String getOrderNumWeixin(){
		return this.orderNumWeixin;
	}
	public CmsContentChargeRecord setOrderNumAlipay(java.lang.String orderNumAlipay){
		this.orderNumAlipay=orderNumAlipay==null?null:orderNumAlipay.trim();
	 return this;
	}
	public java.lang.String getOrderNumAlipay(){
		return this.orderNumAlipay;
	}
	public CmsContentChargeRecord setChargeReward(java.lang.Byte chargeReward){
	 this.chargeReward=chargeReward;
	 return this;
	}
	public java.lang.Byte getChargeReward(){
		return this.chargeReward;
	}
	public CmsContentChargeRecord setStatus(java.lang.Byte status){
	 this.status=status;
	 return this;
	}
	public java.lang.Byte getStatus(){
		return this.status;
	}
	public CmsContentChargeRecord setCreateTime(java.util.Date createTime){
	 this.createTime=createTime;
	 return this;
	}
	public java.util.Date getCreateTime(){
		return this.createTime;
	}
	public CmsContentChargeRecord setUpdateTime(java.util.Date updateTime){
	 this.updateTime=updateTime;
	 return this;
	}
	public java.util.Date getUpdateTime(){
		return this.updateTime;
	}

}
